﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCCommon;

namespace BCDto.HelpDocument.HelpDocumentation
{
    /// <summary>
    /// 帮助
    /// </summary>
    public class HelpDocumentationRequestDto
    {
        /// <summary>
        /// 文档码
        /// </summary>		
        [Display(Name = "文档码")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        [RegularExpression(RegexPatterns.ENGLISH_AND_UNDERLINE, ErrorMessage = "文档编码格式不正确,仅支持英文单词和下划线，不支持其他字符")]
        public string DocumentCode { get; set; }
        /// <summary>
        /// 文档类型Id
        /// </summary>		
        [Display(Name = "文档类型Id")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public long HelpDocumentCategoryId { get; set; }
        /// <summary>
        /// 文档类型名称
        /// </summary>		
        [Display(Name = "文档类型名称")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string DocumentCategoryName { get; set; }
        /// <summary>
        /// 标题
        /// </summary>		
        [Display(Name = "标题")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string Title { get; set; }
        /// <summary>
        /// 内容
        /// </summary>		
        [Display(Name = "内容")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public string Content { get; set; }
    }
}

